<?php

use Illuminate\Database\Seeder;

class UserTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $data =[];
        for($i=0;$i<200;$i++)
        {
            $step['username']='admin'.$i;
            $step['password']=Crypt::encrypt('123456');
            $step['auth']='0';
            $step['phone']='12312312312';
            $step['email']='123@qq.com';
            $step['pic']='/uploads/1.jpg';
            $step['token']=str_random(50);
            $step['status']='1';
            $data[] = $step;
        }
        DB::table('user')->insert($data);
    }
}
